package com.coffee.sku.api.inquire.service;

import com.coffee.core.entity.Page;
import com.coffee.core.entity.PagerInfo;
import com.coffee.core.exception.BusinessException;
import com.coffee.sku.api.inquire.query.InquireSkuPriceTrendQuery;
import com.coffee.sku.api.inquire.result.InquireSkuPriceTrendResult;

import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.Set;


public interface InquireSkuPriceTrendService {

    Page<InquireSkuPriceTrendResult> getPager(InquireSkuPriceTrendQuery param, PagerInfo pr);

    Integer count(InquireSkuPriceTrendQuery param);

    InquireSkuPriceTrendResult getDetail(Integer id);

    List<InquireSkuPriceTrendResult> getList(InquireSkuPriceTrendQuery param, PagerInfo pr);

    List<InquireSkuPriceTrendResult> getList(InquireSkuPriceTrendQuery param);

    List<InquireSkuPriceTrendResult> getList();

    void delete(Integer id, Integer supplierId);

    void addOrUpdate(InquireSkuPriceTrendResult result) throws BusinessException;

    Map<Integer, InquireSkuPriceTrendResult> getItemMap(Set<Integer> idSet);

    Map<Integer, InquireSkuPriceTrendResult> getItemMap();

    Map<String, List<InquireSkuPriceTrendResult>> getMap(Integer supplierId, Date startTime,Date endTime);

}